﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditArticle.aspx.cs" Inherits="SmartSpace.News.UI.Pages.EditArticle"
    ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="../Resources/Js/jquery-1.9.0.min.js">
    </script>
    <script type="text/javascript" src="../Resources/kindeditor/kindeditor.js">
    </script>
    <script type="text/javascript">
        var content, editor;

        $(document).ready(function () {
            content = $("#<%=_ctlContent.ClientID%>");
            editor = KindEditor.create(content, { height: '230px', width: '680px' });
        });

        function GetContent() {
            content.val(editor.html());
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>
                    编号
                </td>
                <td>
                    <asp:TextBox ID="_ctlCode" runat="server" ReadOnly="true" />
                </td>
            </tr>
            <tr>
                <td>
                    标题
                </td>
                <td>
                    <asp:TextBox ID="_ctlTitle" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    描述
                </td>
                <td>
                    <asp:TextBox ID="_ctlDesc" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    内容
                </td>
                <td>
                    <asp:TextBox ID="_ctlContent" runat="server"></asp:TextBox>
                </td>
            </tr>
        </table>
        <asp:LinkButton ID="_ctlBtnSave" Text="save" runat="server" OnClientClick="GetContent();"
            OnClick="_ctlBtnSave_Click" />
    </div>
    </form>
</body>
</html>
